package com.example.stuwork.pojo;

import java.util.Date;

/**
 * 班级实体类
 */
public class Class {
    
    /**
     * 班级ID
     */
    private Long classId;
    
    /**
     * 学院编号
     */
    private String deptNumber;
    
    /**
     * 年级
     */
    private String grade;
    
    /**
     * 专业编码
     */
    private String majorCode;
    
    /**
     * 专业名称
     */
    private String majorName;
    
    /**
     * 班级号
     */
    private String classNumber;
    
    /**
     * 班级名称 (自动生成)
     */
    private String className;
    
    /**
     * 创建时间
     */
    private Date createTime;
    
    /**
     * 更新时间
     */
    private Date updateTime;
    
    // 默认构造函数
    public Class() {
    }
    
    // Getter and Setter 方法
    public Long getClassId() {
        return classId;
    }
    
    public void setClassId(Long classId) {
        this.classId = classId;
    }
    
    public String getDeptNumber() {
        return deptNumber;
    }
    
    public void setDeptNumber(String deptNumber) {
        this.deptNumber = deptNumber;
    }
    
    public String getGrade() {
        return grade;
    }
    
    public void setGrade(String grade) {
        this.grade = grade;
    }
    
    public String getMajorCode() {
        return majorCode;
    }
    
    public void setMajorCode(String majorCode) {
        this.majorCode = majorCode;
    }
    
    public String getMajorName() {
        return majorName;
    }
    
    public void setMajorName(String majorName) {
        this.majorName = majorName;
    }
    
    public String getClassNumber() {
        return classNumber;
    }
    
    public void setClassNumber(String classNumber) {
        this.classNumber = classNumber;
    }
    
    public String getClassName() {
        return className;
    }
    
    public void setClassName(String className) {
        this.className = className;
    }
    
    public Date getCreateTime() {
        return createTime;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    public Date getUpdateTime() {
        return updateTime;
    }
    
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    
    @Override
    public String toString() {
        return "Class{" +
                "classId=" + classId +
                ", deptNumber='" + deptNumber + '\'' +
                ", grade='" + grade + '\'' +
                ", majorCode='" + majorCode + '\'' +
                ", majorName='" + majorName + '\'' +
                ", classNumber='" + classNumber + '\'' +
                ", className='" + className + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
} 